package com.dv.driverless.domain;

import java.util.Date;

import com.dv.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.dv.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 摄像头信息对象 equipment_camera
 *
 * @author ruoyi
 * @date 2023-04-06
 */
public class EquipmentCamera extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 摄像头编码 */
    @Excel(name = "摄像头编码")
    private String cameraCode;

    /** 摄像头名称 */
    @Excel(name = "摄像头名称")
    private String cameraName;

    /** 摄像头类型 */
    @Excel(name = "摄像头类型")
    private String cameraType;

    /** 摄像头IP */
    @Excel(name = "摄像头IP")
    private String cameraIp;

    /** 摄像头端口 */
    @Excel(name = "摄像头端口")
    private String cameraPort;

    /** 库区ID */
    @Excel(name = "库区ID")
    private Long areaId;

    /** 状态[0正常 1停用] */
    @Excel(name = "状态[0正常 1停用]")
    private String status;

    /** 删除标志[0代表存在 1代表删除] */
    private String delFlag;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 安装位置 */
    @Excel(name = "安装位置")
    private String installPosition;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCameraCode(String cameraCode)
    {
        this.cameraCode = cameraCode;
    }

    public String getCameraCode()
    {
        return cameraCode;
    }
    public void setCameraName(String cameraName)
    {
        this.cameraName = cameraName;
    }

    public String getCameraName()
    {
        return cameraName;
    }
    public void setCameraType(String cameraType)
    {
        this.cameraType = cameraType;
    }

    public String getCameraType()
    {
        return cameraType;
    }
    public void setCameraIp(String cameraIp)
    {
        this.cameraIp = cameraIp;
    }

    public String getCameraIp()
    {
        return cameraIp;
    }
    public void setCameraPort(String cameraPort)
    {
        this.cameraPort = cameraPort;
    }

    public String getCameraPort()
    {
        return cameraPort;
    }
    public void setAreaId(Long areaId)
    {
        this.areaId = areaId;
    }

    public Long getAreaId()
    {
        return areaId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setInstallPosition(String installPosition)
    {
        this.installPosition = installPosition;
    }

    public String getInstallPosition()
    {
        return installPosition;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cameraCode", getCameraCode())
            .append("cameraName", getCameraName())
            .append("cameraType", getCameraType())
            .append("cameraIp", getCameraIp())
            .append("cameraPort", getCameraPort())
            .append("areaId", getAreaId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("installPosition", getInstallPosition())
            .toString();
    }
}
